home *** CD-ROM | disk | FTP | other *** search
/ C++ für Kids / C++ for kids.iso / Buch / Hallo3.cpp < prev    next >
C/C++ Source or Header  |  1998-12-15  |  2KB  |  46 lines

  1. //---------------------------------------------------------------------------
  2. #include <vcl\vcl.h>
  3. #pragma hdrstop
  4.  
  5. #include "Hallo3.h"
  6. //---------------------------------------------------------------------------
  7. #pragma resource "*.dfm"
  8. TForm1 *Form1;
  9. //---------------------------------------------------------------------------
  10. __fastcall TForm1::TForm1(TComponent* Owner)
  11.     : TForm(Owner)
  12. {
  13. }
  14. //---------------------------------------------------------------------------
  15. void __fastcall TForm1::Button1Click(TObject *Sender)
  16. {
  17.   Application->MessageBox ("Das ist ja toll!", "", 4+48);
  18. }
  19. //---------------------------------------------------------------------------
  20. void __fastcall TForm1::Button2Click(TObject *Sender)
  21. {
  22.   Application->MessageBox ("Das freut mich!", "", 4+48);
  23. }
  24. //---------------------------------------------------------------------------
  25. void __fastcall TForm1::Button3Click(TObject *Sender)
  26. {
  27.   Application->MessageBox ("Das geht ja noch!", "", 4+32);
  28. }
  29. //---------------------------------------------------------------------------
  30. void __fastcall TForm1::Button4Click(TObject *Sender)
  31. {
  32.   Application->MessageBox ("Das tut mir leid!", "", 4+48);
  33. }
  34. //---------------------------------------------------------------------------
  35. void __fastcall TForm1::Button5Click(TObject *Sender)
  36. {
  37.   Application->MessageBox ("Das ist ja schlimm!", "", 4+48);
  38. }
  39. //---------------------------------------------------------------------------
  40. void __fastcall TForm1::Button6Click(TObject *Sender)
  41. {
  42.   Application->MessageBox ("Wenn du meinst...", "", 1+16);
  43. }
  44. //---------------------------------------------------------------------------
  45.  
  46.